package com.day.service.impl;

import com.day.mapper.ClassesMapper;
import com.day.pojo.Classes;
import com.day.service.ClassesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ClassesServiceImpl implements ClassesService {

    @Autowired
    ClassesMapper classesMapper;

    @Override
    public List<Classes> getClassesList() {
        List<Classes> classesList = classesMapper.getClassesList();
        return classesList;
    }

    @Override
    public Classes getClassesById(Integer c_id) {
        return classesMapper.getClassesById(c_id);
    }

    @Override
    public void addClasses(Classes classes) {
        classesMapper.addClasses(classes);
    }

    @Override
    public void delClassesById(Integer c_id) {
        classesMapper.delClassesById(c_id);
    }

    @Override
    public void editClassesById(Classes classes) {
        classesMapper.editClassesById(classes);
    }
}
